import mergeConfig from "../mergeConfig"

export default (newValue?: any) => {
    return mergeConfig({
        __sort__: ["width", "top", "bgcolor", "color"],
        __type__: "vajra",
        width: {
            name: "宽度",
            type: "number",
            value: 355
        },
        top: {
            name: "上边距",
            type: "number",
            value: 10
        },
        bgcolor: {
            name: "背景色",
            type: "color",
            value: "#ffffff"
        },
        color: {
            name: "文字颜色",
            type: "color",
            value: "#1C1C1C"
        },
        btns: {
            name: "",
            type: "",
            value: [{
                label: "我的电脑",
                icon: "./computer.png"
            }, {
                label: "视频播放器",
                icon: "./video-play.png"
            }, {
                label: "代码编辑器",
                icon: "./code-editor.png"
            }, {
                label: "图片编辑器",
                icon: "./image-editor.png"
            }, {
                label: "3D模型",
                icon: "./model-editor.png"
            }, {
                label: "截图工具",
                icon: "./snipping.png"
            }]
        }
    }, newValue)
}